package com.lsa.helpers.tree.binary;

import com.lsa.helpers.tree.ITreeVisitor;

public class PrefixBinaryTreeWalker<T> extends BinaryTreeWalker<T>
{
    public PrefixBinaryTreeWalker(ITreeVisitor<T> visitor)
    {
        super(visitor);
    }

    @Override
    protected void walkInOrder(IBinaryTreeNode<T> node) throws Exception
    {
        visitor.visit(node);
        walkSubtree(node, false);
        walkSubtree(node, true);
    }
}
